package com.platform.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

import static com.platform.comm.util.DateTimeUtil.STD_LONG_TIME_PATTERN;

/**
 * @author Coder
 */
@Getter
@Setter
public class SysMsgRecordVo {

    /**
    * 主键标识
    */
    private String id;

    /**
    * 消息id
    */
    private String msgId;

    /**
    * 收件人
    */
    private String recevieUser;

    /**
    * 收件人名称
    */
    private String recevieName;

    /**
    * 读取状态
    */
    private String readStatus;

    /**
    * 是否删除
    */
    private String flag;


    @JsonFormat(pattern = STD_LONG_TIME_PATTERN, shape = JsonFormat.Shape.STRING)
    private LocalDateTime readTime;

    /**
     * 消息内容
     */
    private SysMsgManageVo msgManageVo;

}
